package DBLayer;
import java.util.ArrayList;
import ModelLayer.*;

public interface IFDBEquipment
{
	//get all equipment
	public ArrayList<Equipment> getAllEquipment(boolean retrieveAssociation);
	
	//get an equipment item by id
	public Equipment getEquipmentByID(int id, boolean retrieveAssociation);
	
	//get equipment by type
	public ArrayList<Equipment> searchByType(String type, boolean retrieveAssociation);
	
	//get equipment by description
	public ArrayList<Equipment> searchByDescription(float description, boolean retrieveAssociation);
	
	//insert equipment into the table
	public int insertEquipment(Equipment equipment) throws Exception;
	
	//update equipment by its id
	public int updateEquipmentByID(Equipment equipment);
	
	//delete equipment by its id
	public int deleteEquipmentByID(int id);
}
